<template>
	<view>
		<video 
			autoplay 
			:show-loading='false' 
			:controls="false" 
			:enable-progress-gesture="false" 
			object-fit='fill' 
			class="W_100vw H_100vh" 
			muted="true"
			src="../../static/poster.mp4">
		</video>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {
			var token = uni.getStorageSync('token')
			
			setTimeout(()=>{
				if(token){
					uni.switchTab({
						url:'../index/index'
					})
					console.log('aaa')
				}else{
					uni.redirectTo({
						url:'./login'
					})
				}
			},4000)
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
